﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="HotelManagementSystemDataSet" targetNamespace="http://tempuri.org/HotelManagementSystemDataSet.xsd" xmlns:mstns="http://tempuri.org/HotelManagementSystemDataSet.xsd" xmlns="http://tempuri.org/HotelManagementSystemDataSet.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop" attributeFormDefault="qualified" elementFormDefault="qualified">
  <xs:annotation>
    <xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource">
      <DataSource DefaultConnectionIndex="0" FunctionsComponentName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
        <Connections>
          <Connection AppSettingsObjectName="Settings" AppSettingsPropertyName="HotelManagementSystemConnectionString" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Assembly" Name="HotelManagementSystemConnectionString (Settings)" ParameterPrefix="@" PropertyReference="ApplicationSettings.HotelManagement.Properties.Settings.GlobalReference.Default.HotelManagementSystemConnectionString" Provider="System.Data.SqlClient" />
        </Connections>
        <Tables>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="Room_TypeTableAdapter" GeneratorDataComponentClassName="Room_TypeTableAdapter" Name="Room_Type" UserDataComponentName="Room_TypeTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="HotelManagementSystemConnectionString (Settings)" DbObjectName="HotelManagementSystem.dbo.Room_Type" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>DELETE FROM [dbo].[Room_Type] WHERE (([rt_id] = @Original_rt_id) AND ((@IsNull_rt_type_name = 1 AND [rt_type_name] IS NULL) OR ([rt_type_name] = @Original_rt_type_name)))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_rt_id" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="rt_id" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_rt_type_name" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="rt_type_name" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_rt_type_name" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="rt_type_name" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>INSERT INTO [dbo].[Room_Type] ([rt_type_name]) VALUES (@rt_type_name);
SELECT rt_id, rt_type_name FROM Room_Type WHERE (rt_id = SCOPE_IDENTITY())</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@rt_type_name" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="rt_type_name" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>SELECT rt_id, rt_type_name FROM dbo.Room_Type</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>UPDATE [dbo].[Room_Type] SET [rt_type_name] = @rt_type_name WHERE (([rt_id] = @Original_rt_id) AND ((@IsNull_rt_type_name = 1 AND [rt_type_name] IS NULL) OR ([rt_type_name] = @Original_rt_type_name)));
SELECT rt_id, rt_type_name FROM Room_Type WHERE (rt_id = @rt_id)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@rt_type_name" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="rt_type_name" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_rt_id" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="rt_id" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_rt_type_name" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="rt_type_name" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_rt_type_name" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="rt_type_name" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="rt_id" ColumnName="rt_id" DataSourceName="HotelManagementSystem.dbo.Room_Type" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@rt_id" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="rt_id" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="rt_id" DataSetColumn="rt_id" />
              <Mapping SourceColumn="rt_type_name" DataSetColumn="rt_type_name" />
            </Mappings>
            <Sources />
          </TableAdapter>
        </Tables>
        <Sources />
      </DataSource>
    </xs:appinfo>
  </xs:annotation>
  <xs:element name="HotelManagementSystemDataSet" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:EnableTableAdapterManager="True" msprop:Generator_DataSetName="HotelManagementSystemDataSet" msprop:Generator_UserDSName="HotelManagementSystemDataSet">
    <xs:complexType>
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:element name="Room_Type" msprop:Generator_TableClassName="Room_TypeDataTable" msprop:Generator_TableVarName="tableRoom_Type" msprop:Generator_TablePropName="Room_Type" msprop:Generator_RowDeletingName="Room_TypeRowDeleting" msprop:Generator_UserTableName="Room_Type" msprop:Generator_RowChangingName="Room_TypeRowChanging" msprop:Generator_RowEvHandlerName="Room_TypeRowChangeEventHandler" msprop:Generator_RowDeletedName="Room_TypeRowDeleted" msprop:Generator_RowEvArgName="Room_TypeRowChangeEvent" msprop:Generator_RowChangedName="Room_TypeRowChanged" msprop:Generator_RowClassName="Room_TypeRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="rt_id" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnrt_id" msprop:Generator_ColumnPropNameInRow="rt_id" msprop:Generator_ColumnPropNameInTable="rt_idColumn" msprop:Generator_UserColumnName="rt_id" type="xs:int" />
              <xs:element name="rt_type_name" msprop:Generator_ColumnVarNameInTable="columnrt_type_name" msprop:Generator_ColumnPropNameInRow="rt_type_name" msprop:Generator_ColumnPropNameInTable="rt_type_nameColumn" msprop:Generator_UserColumnName="rt_type_name" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="20" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:choice>
    </xs:complexType>
    <xs:unique name="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:Room_Type" />
      <xs:field xpath="mstns:rt_id" />
    </xs:unique>
  </xs:element>
</xs:schema>